<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
        <meta http-equiv="X-UA-Compatible" content="ie=edge"/>
        <title>Document</title>
        <script>
            window.onload = function(){
                document.onclick = function(){

                    //输出当前窗口的高
                    /* var windowWidth = document.documentElement.clientWidth || document.body.clientWidth;
                    alert(windowWidth); */

                    var windowHeight = document.documentElement.clientHeight || document.body.clientHeight;
                    alert(windowHeight);
                    
                }
            }
        </script>
    </head>
    <body>
        
    </body>
</html>